﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using Models;

namespace BLL
{
    public class UserinforManger
    {
        public static List<Admin> SelectAdmin(string name, string pwd)
        {
            return UserinforServers.SelectAdmin(name, pwd);
        }
        public static List<UserinforModel> SelectUserinfo(string name, string pwd)
        {
            return  UserinforServers.SelectAll(name, pwd);
        }


        public static bool AddProduct(UserinforModel p)
        {
            return UserinforServers.Add(p);

        }
        public static List<UserinforModel> selectByUserID(int UserID)
        {
            return UserinforServers.selectByUserID(UserID);
        }
        public static bool updateByUserID(string UName, int UserAge, string UsersSex, string UserPhone, string Address, int UserID)
        {
            return UserinforServers.updateByUserID(UName, UserAge, UsersSex, UserPhone, Address, UserID);
        }
    }
}
